package com.jiaming.restaurant.api.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiaming.restaurant.api.common.bean.vo.MyPageVO;
import com.jiaming.restaurant.api.trade.bean.entity.Trade;
import com.jiaming.restaurant.api.trade.bean.vo.*;

/**
 * @author dragon
 * @create 2021-02-24 16:25
 */
public interface ITradeService extends IService<Trade> {
    TradeSaveDataVo saveTrade(TradeVo tradeVo);
    TradeSaveDataVo addTrade(AddGoodsVo addGoodsVo);


    TradeInfoVo getByTradeId(String tradeId);

    TradeSaveDataVo pay(String tradeId, Integer amount);


    MyPageVO<Trade> pageDetail(TradePageVo tradePgeVo);
}
